export default class Base {
    constructor(){}
    /**
     * 获取vjson 
     */
    getVjsonString(){}

    /**
     * 生成Vue源码
     */
    generateVue(){
        let nameDef = ''
        let mixinsDef = ''
        let dataDef = ''
        let propsDef = ''
        let methodsDef = ''
        let computedDef = ''
        let watchDef = ''
        let templateDef = ''
        let hookDef = ''
        const source = `
        <template>
            ${templateDef}
        </template>
        <script>
        export default {
            name: ${nameDef},
            mixins: [${mixinsDef}],
            props: {${propsDef}},
            data(){${dataDef}},
            methods: {${methodsDef}},
            computed: {${computedDef}},
            watch:{${watchDef}},
            ${hookDef},
        }
        </script>
        `
        return source

    }

}